package com.evildog.workspace.security.jwt.enums;

import com.evildog.workspace.common.intefaces.ICustomExceptionDesc;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 返回前端状态码
 */
@AllArgsConstructor
@Getter
public enum SecurityJwtCustomExceptionDesc implements ICustomExceptionDesc {


    /* ============================     custom status code    =================================================  */

    /* ============================     security status code    =================================================  */

    JWT_PARSE_ERROR("A110001", "jwt 解析异常", "jwt 解析异常"),
    CLAIM_REQUIRED("A110002", "claims 参数缺失", "claims 参数缺失"),
    SIGN_KEY_IS_BLANK("A110004", "jwt signKey 为空", "jwt signKey 为空"),

    ;


    /**
     * 状态码
     */
    private String code;
    /**
     * 信息，前端展示信息
     */
    private String message;

    /**
     * 描述
     */
    private String description;


}
